.course-filter {
  // position: fixed;
  // top: 0;
  z-index: 500;
  width: 100%;
  height: 80rpx;
  line-height: 80rpx;
  align-content: center;
  justify-content: center;
  background: #f7f7f7;
  font-size: 28rpx;
  .u-arrow {
    margin-left: 10rpx;
  }
  &.active {
    color: #14cc76;
    .u-arrow-up {
      border-top-color: #14cc76;
    }
  }
}

.shade {
  width: 100%;

  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 1;
  position: absolute;
}

.conts {
  box-shadow: 0 8rpx 16rpx 0px rgba(0, 0, 0, 0.1);
  width: 100%;
  background: #fff;
  // position: fixed;
  top: 80rpx;
  padding: 40rpx 0;
  font-size: 24rpx;

  .filter-name {
    margin-left: 32rpx;
    color: #9b9b9b;
    margin-bottom: 14rpx;
  }

  .grade-box,
  .subject-box {
    padding: 0 32rpx;
    .item {
      position: relative;
      text-align: center;
      background: #f1f1f1;
      border-radius: 28rpx;
      overflow: hidden;
      color: #757575;
      line-height: 56rpx;
      white-space: nowrap;
      margin: 14rpx 0 30rpx 0;
      border: 2rpx solid transparent;
      padding: 0 6rpx;
      &.c-active,
      &.active {
        background: rgba(20, 204, 118, 0.1);
        color: #07d0b0;
        border-color: #14cc76;
      }
    }
  }

  .sure-choose {
    width: 690rpx;
    height: 80rpx;
    background: #14cc76;
    border-radius: 40rpx;
    margin: 60rpx auto 0 auto;
    font-size: 32rpx;
    text-align: center;
    line-height: 80rpx;
    color: #fff;
  }
}

.new-filter {
  box-shadow: 0 4rpx 16rpx 0 rgba(0, 0, 0, 0.05);
  .tab-h {
    padding-left: 40rpx;
    // height: 50rpx;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: #fff;
    white-space: nowrap;
    z-index: 10;
    .tab-item {
      margin: 0 24rpx;
      display: inline-block;
      color: #757575;
      font-size: 28rpx;
      text-align: center;
      line-height: 50rpx;

      &:first-child {
        margin-left: 0;
      }

      &.active {
        color: #fff;
        font-weight: bold;
        background: #14cc76;
        border-radius: 26rpx;
        // min-width: 104rpx;
        padding: 0 20rpx;
      }
    }
    ::-webkit-scrollbar {
      width: 0;
      height: 0;
      color: transparent;
    }
  }
  .big-filter {
    justify-content: space-between;
    align-content: center;
    font-size: 28rpx;
    margin-top: 30rpx;
    color: #757575;
    padding: 0 40rpx 16rpx 40rpx;

    .filter-item text {
      display: inline-block;
      margin-right: 40rpx;
      &.active {
        color: #14cc76;
        font-weight: bold;
      }
    }

    .icon-toggle {
      margin-left: 10rpx;
      font-size: 28rpx;
    }

    .sm-filter-box {
      position: relative;
      align-items: center;
      justify-content: center;
      display: flex;

      .iconfont {
        font-size: 20rpx;
        display: inline-block;
        font-weight: bold;
      }

      .icon-arrow-up {
        transform: scale(0.6);
      }

      .icon-arrow-down {
        transform: rotate(180deg) scale(0.6);
      }

      .arrow {
        position: absolute;
        display: inline-block;
        width: 0;
        height: 0;
        border-top: 22rpx solid #fff;
        border-right: 22rpx solid transparent;
        border-bottom: 22rpx solid transparent;
        transform: rotate(45deg);
        position: absolute;
        top: -12rpx;
        right: 26rpx;
        z-index: 30;
      }
      .sm-filter {
        font-size: 28rpx;
        background: #fff;
        box-shadow: 0 0 12rpx 0 rgba(0, 0, 0, 0.1);
        position: absolute;
        right: 0;
        top: 64rpx;
        padding: 10rpx 15rpx;
        z-index: 20;
        text-align: left;
        min-width: 204rpx;
        border-radius: 8rpx;

        .switch {
          margin-top: 5rpx;
          text {
            margin-right: 10rpx;
          }
          .xh-switch {
            float: right;
            margin-top: 5rpx;
          }
        }
      }
    }
  }
}

.hot-course {
  background: #fff;
  padding: 0 40rpx 40rpx 40rpx;
  .course-box {
    margin-top: 40rpx;
    .course {
      box-shadow: 0 0 12rpx 0 rgba(0, 0, 0, 0.1);
      border-radius: 16rpx;
      padding: 60rpx 20rpx 40rpx 20rpx;
      margin-bottom: 40rpx;
      position: relative;
      border: 2rpx solid #f1f1f1;

      .cover {
        width: 200rpx;
        height: 150rpx;
        border-radius: 16rpx;
      }

      .tag {
        position: absolute;
        right: 0;
        top: 0;
        border-radius: 0 16rpx 0 16rpx;
        color: #fff;
        display: inline-block;
        font-size: 24rpx;
        font-weight: normal;
        padding: 0 20rpx;
        line-height: 40rpx;
        &.primary {
          color: #14cc76;
          background: rgba(20, 204, 118, 0.1);
        }
        &.junior {
          color: #ffba00;
          background: rgba(255, 186, 0, 0.1);
        }
        &.senior {
          color: #fe7141;
          background: rgba(254, 113, 65, 0.1);
        }
      }

      .base-info {
        font-size: 28rpx;
        .course-name {
          height: 106rpx;
          max-height: 80rpx;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          color: #4a4a4a;
          font-size: 32rpx;
          font-weight: bold;
        }
        .school-name {
          font-size: 28rpx;
          margin-top: 16rpx;
          color: #14cc76;
          font-weight: 400;
        }

        .other {
          margin-top: 40rpx;
          font-size: 24rpx;
          color: #757575;
          justify-content: space-between;
          .teachers {
            align-content: flex-start;
            .teacher {
              text-align: center;
              .avatar {
                width: 48rpx;
                height: 48rpx;
                border-radius: 100%;
              }
              .name {
                color: #9b9b9b;
                display: inline-block;
                width: 110rpx;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                font-size: 24rpx;
              }
            }
          }
          .price {
            color: #ff3b30;
            font-size: 40rpx;
            text-align: right;
          }
          .limited {
            color: #ff1e32;
            font-size: 24rpx;
            margin-right: 12rpx;
          }
          .joined-num {
            color: #9b9b9b;
            font-size: 24rpx;
          }
        }
      }
    }
  }
}

// button样式重置
.xhzx-form-button {
  color: inherit;
  line-height: auto;
  font-size: inherit;
  text-align: inherit;
}
